package util.ip;

import java.util.HashMap;
import java.util.Map;

public class ProCalc {
	
	int tcpNum = 0;
	int httpNum = 0;
	int httpsNum = 0;
	int udpNum = 0;
	
	public ProCalc() {
	
		
	}
	
	public void calcPro(String pro) {
		switch (pro.toLowerCase()) 
		{
			case "tcp" : tcpNum++; break;
			case "http" : httpNum++; break;
			case "https" : httpsNum++; break;
			case "udp": udpNum++; break;
		}
	}
	
	public int getTcpNum() {
		return tcpNum;
	}
	
	public int getHttpNum() {
		return httpNum;
	}
	
	public int getHttpsNum() {
		return httpsNum;
	}
	
	public int getUdpNum() {
		return udpNum;
	}
	


}
